package com.lee.starter.response.enhancer;

import com.lee.starter.response.Result;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Lee
 * @date 2020/4/30
 */
@Getter
@Setter
public class ResultEnhancer {

    public ResultEnhancer() {
        resultHandler = Result::success;
    }

    private IResultHandler resultHandler;

    public Object enhancer(Object body) {
        return resultHandler.handleCustomResult(body);
    }

}